package com.imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.pojo.JobType;
import com.imooc.vo.JobTypeSecondAndThirdVO;

import java.util.List;

/**
 * <p>
 * 职位类别 服务类
 * </p>
 *
 * @author liansen
 * @since 2023-05-15
 */
public interface JobTypeService extends IService<JobType> {

    boolean getJobTypeExistByName(String name);

    void createNode(JobType jobType);

    List<JobType> getFatherData(String id);

    Long getChildrenCount(String id);

    List<JobTypeSecondAndThirdVO> getSecondAndThirdListByTop(String id);

    List<JobTypeSecondAndThirdVO> getSecondAndThirdListByTopBySQL(String id);
}
